//
//  SeckillResultDetailViewController.h
//  CPICApp
//
//  Created by zhiwei li on 13-3-26.
//  Copyright (c) 2013年 lizhiwei. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ASIHTTPRequest.h"
#import "MBProgressHUD.h"
#import "CustomNumbleKeyboardView.h"

@protocol SeckillResultDetailDelegate <NSObject>

-(void)RefreshSeckillResultQueryRequest;
@end

@interface SeckillResultDetailViewController : UIViewController<UITableViewDataSource,UITableViewDelegate,UITextFieldDelegate,CustomNumberKeyBoardDelegate>
{
    //补发短信按钮
    UIButton * Reissuebtn;
    
    BOOL showProgress;
    MBProgressHUD* progress;
    
    NSMutableArray * ArrGoodsInfoContent;
    NSString * SecKillcommodityId;
    NSString * OrderID;
    
    NSString * Goodsname;
    NSString * GoodsPrice;
    NSString * SmsIdentifyingInfo;
    
    NSString * OrderNo;
    NSString * OrderStatus;
    NSString * OrderStatusName;
    NSString * SeckillSuccessTime;
    
    UIButton * CancelOrderBtn;
    UILabel * lbCancelOrder;
    
    UIButton * DoorChargesBtn;
    UILabel * lbSuggestion;
    
    BOOL canSendMessage;
    NSTimer *myTimer;
    BOOL TimerInvalid;
    NSInteger TableLine;
    NSString *strordercode;
}

@property(nonatomic,retain) UITableView * TableGoodsInfo;
@property(nonatomic,retain)UITextField *txtGoodsName;
@property(nonatomic,retain)UITextField *txtGoodsPrice;
@property(nonatomic,retain)UITextField *txtSmsIdentifyingInfo;

@property(nonatomic,retain)UITextField *txtSerialNo;
@property(nonatomic,retain)UITextField *txtOrderNo;
@property(nonatomic,retain)UITextField *txtOrderStatus;
@property(nonatomic,retain)UITextField *txtSeckillSuccessTime;

//产品名称、价格、短信确认码
@property(nonatomic,retain) NSString * Goodsname;
@property(nonatomic,retain) NSString * GoodsPrice;
@property(nonatomic,retain) NSString * SmsIdentifyingInfo;

@property(nonatomic,retain) NSString * OrderNo;
@property(nonatomic,retain) NSString * OrderStatus;
@property(nonatomic,retain) NSString * SeckillSuccessTime;
@property(nonatomic,retain) NSString * OrderStatusName;
@property(nonatomic,retain) NSString * SerialNO;

@property(strong, nonatomic) MBProgressHUD* progress;

@property(nonatomic,strong) id<SeckillResultDetailDelegate>SeckillResultdelegate;

-(void)setSeckillSuccessDetailRequest;//向太保移动平台发送秒杀成功详细信息请求报文
-(id)initView:(NSString *)SecKillCommodityID withorderID:(NSString *)orderID withSerialNO:(NSString *)serialNO;
-(void)setSendSmsRequest;//向太保移动平台发送补发短信请求报文
-(void)setCancelOrderRequest;//向太保移动平台发送取消订单请求报文
@end
